@hua-labs/ui 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/README.md +182 -67
  2. package/dist/{Switch-O4TpMKfQ.d.mts → Switch-Dzm5TLR3.d.mts} +1 -1
  3. package/dist/advanced/dashboard.d.ts.map +1 -1
  4. package/dist/advanced-dashboard.js +1 -1
  5. package/dist/advanced-dashboard.js.map +1 -1
  6. package/dist/advanced-dashboard.mjs +1 -1
  7. package/dist/advanced-motion.js +5 -5
  8. package/dist/advanced-motion.js.map +1 -1
  9. package/dist/advanced-motion.mjs +1 -1
  10. package/dist/advanced.js +7 -7
  11. package/dist/advanced.js.map +1 -1
  12. package/dist/advanced.mjs +1 -1
  13. package/dist/{chunk-ECLIPN34.mjs → chunk-COR6CDMA.mjs} +3 -3
  14. package/dist/{chunk-ECLIPN34.mjs.map → chunk-COR6CDMA.mjs.map} +1 -1
  15. package/dist/chunk-HN5LSP6L.mjs +3 -0
  16. package/dist/chunk-HN5LSP6L.mjs.map +1 -0
  17. package/dist/{chunk-T3GU5BJ3.mjs → chunk-LOYAJIWO.mjs} +2 -2
  18. package/dist/{chunk-T3GU5BJ3.mjs.map → chunk-LOYAJIWO.mjs.map} +1 -1
  19. package/dist/{chunk-TOANBEPN.mjs → chunk-NBJUE7NR.mjs} +2 -2
  20. package/dist/{chunk-TOANBEPN.mjs.map → chunk-NBJUE7NR.mjs.map} +1 -1
  21. package/dist/{chunk-PQ3DBOMK.mjs → chunk-QQCELXFD.mjs} +2 -2
  22. package/dist/{chunk-PQ3DBOMK.mjs.map → chunk-QQCELXFD.mjs.map} +1 -1
  23. package/dist/{chunk-OI66ZLUB.mjs → chunk-UWHCM3S6.mjs} +2 -2
  24. package/dist/{chunk-OI66ZLUB.mjs.map → chunk-UWHCM3S6.mjs.map} +1 -1
  25. package/dist/{chunk-MYFMKCYX.mjs → chunk-XV3Y7QVU.mjs} +2 -2
  26. package/dist/{chunk-MYFMKCYX.mjs.map → chunk-XV3Y7QVU.mjs.map} +1 -1
  27. package/dist/components/Avatar.d.ts +1 -1
  28. package/dist/components/Avatar.d.ts.map +1 -1
  29. package/dist/components/Badge.d.ts +1 -1
  30. package/dist/components/Badge.d.ts.map +1 -1
  31. package/dist/components/Button.variants.d.ts +1 -1
  32. package/dist/components/Button.variants.d.ts.map +1 -1
  33. package/dist/components/Card.d.ts +1 -1
  34. package/dist/components/Card.d.ts.map +1 -1
  35. package/dist/components/CodeBlock.d.ts +1 -1
  36. package/dist/components/Container.d.ts +1 -1
  37. package/dist/components/Container.d.ts.map +1 -1
  38. package/dist/components/Grid.d.ts +1 -1
  39. package/dist/components/Grid.d.ts.map +1 -1
  40. package/dist/components/Icon/Icon.d.ts.map +1 -1
  41. package/dist/components/Input.d.ts +1 -1
  42. package/dist/components/Input.d.ts.map +1 -1
  43. package/dist/components/Label.d.ts +1 -1
  44. package/dist/components/Label.d.ts.map +1 -1
  45. package/dist/components/Link.d.ts +1 -1
  46. package/dist/components/Link.d.ts.map +1 -1
  47. package/dist/components/Panel.d.ts +1 -1
  48. package/dist/components/Panel.d.ts.map +1 -1
  49. package/dist/components/Progress.d.ts +2 -2
  50. package/dist/components/Progress.d.ts.map +1 -1
  51. package/dist/components/Select.d.ts +1 -1
  52. package/dist/components/Select.d.ts.map +1 -1
  53. package/dist/components/Skeleton.d.ts +1 -1
  54. package/dist/components/Skeleton.d.ts.map +1 -1
  55. package/dist/components/Stack.d.ts +1 -1
  56. package/dist/components/Stack.d.ts.map +1 -1
  57. package/dist/components/Textarea.d.ts +1 -1
  58. package/dist/components/Textarea.d.ts.map +1 -1
  59. package/dist/components/icons/essential.d.ts +68 -0
  60. package/dist/components/icons/essential.d.ts.map +1 -0
  61. package/dist/components/icons-bold/essential.d.ts +68 -0
  62. package/dist/components/icons-bold/essential.d.ts.map +1 -0
  63. package/dist/data.d.mts +1 -1
  64. package/dist/data.js.map +1 -1
  65. package/dist/data.mjs.map +1 -1
  66. package/dist/form.d.mts +1 -1
  67. package/dist/form.js +1 -1
  68. package/dist/form.js.map +1 -1
  69. package/dist/form.mjs +1 -1
  70. package/dist/iconsax-extended.d.ts +19 -0
  71. package/dist/iconsax-extended.d.ts.map +1 -0
  72. package/dist/iconsax-extended.js +3 -0
  73. package/dist/iconsax-extended.js.map +1 -0
  74. package/dist/iconsax-extended.mjs +4 -0
  75. package/dist/iconsax-extended.mjs.map +1 -0
  76. package/dist/iconsax.d.ts +10 -11
  77. package/dist/iconsax.d.ts.map +1 -1
  78. package/dist/iconsax.js +2 -2
  79. package/dist/iconsax.js.map +1 -1
  80. package/dist/iconsax.mjs +2 -2
  81. package/dist/iconsax.mjs.map +1 -1
  82. package/dist/index.d.mts +2 -2
  83. package/dist/index.js +4 -4
  84. package/dist/index.js.map +1 -1
  85. package/dist/index.mjs +1 -1
  86. package/dist/interactive.js +1 -1
  87. package/dist/interactive.js.map +1 -1
  88. package/dist/interactive.mjs +1 -1
  89. package/dist/lib/iconsax-loader.d.ts +15 -45
  90. package/dist/lib/iconsax-loader.d.ts.map +1 -1
  91. package/dist/navigation.js +2 -2
  92. package/dist/navigation.js.map +1 -1
  93. package/dist/navigation.mjs +1 -1
  94. package/dist/overlay.js +1 -1
  95. package/dist/overlay.js.map +1 -1
  96. package/dist/overlay.mjs +1 -1
  97. package/dist/sdui.js +3 -3
  98. package/dist/sdui.js.map +1 -1
  99. package/dist/sdui.mjs +1 -1
  100. package/package.json +18 -7
  101. package/src/components/icons/essential.ts +195 -0
  102. package/src/components/icons-bold/essential.ts +195 -0
  103. package/LICENSE +0 -21
  104. package/dist/chunk-AANHUMJ2.mjs +0 -3
  105. package/dist/chunk-AANHUMJ2.mjs.map +0 -1
  106. package/dist/components/icons/Frame2.d.ts +0 -4
  107. package/dist/components/icons/Frame2.d.ts.map +0 -1
  108. package/dist/components/icons/Group.d.ts +0 -4
  109. package/dist/components/icons/Group.d.ts.map +0 -1
  110. package/dist/components/icons/Group1.d.ts +0 -4
  111. package/dist/components/icons/Group1.d.ts.map +0 -1
  112. package/dist/components/icons/GroupCopy.d.ts +0 -4
  113. package/dist/components/icons/GroupCopy.d.ts.map +0 -1
  114. package/dist/iconsax.d.mts +0 -160
  115. package/src/components/icons/Frame2.tsx +0 -28
  116. package/src/components/icons/Group.tsx +0 -35
  117. package/src/components/icons/Group1.tsx +0 -21
  118. package/src/components/icons/GroupCopy.tsx +0 -21
package/README.md CHANGED
@@ -1,42 +1,31 @@
1
1
  # @hua-labs/ui
2
2
 
3
- Modern React UI component library accessible, themeable, production-ready.
4
- 모던 React UI 컴포넌트 라이브러리 — 접근성, 테마, 프로덕션 레디.
3
+ Accessible, TypeScript-first component library for React applications. Provides 70+ production-ready components with modular entry points for optimal bundle size, dark mode support, and Tailwind CSS integration.
5
4
 
6
5
  [![npm version](https://img.shields.io/npm/v/@hua-labs/ui.svg)](https://www.npmjs.com/package/@hua-labs/ui)
7
- [![npm downloads](https://img.shields.io/npm/dw/@hua-labs/ui.svg)](https://www.npmjs.com/package/@hua-labs/ui)
6
+ [![npm downloads](https://img.shields.io/npm/dm/@hua-labs/ui.svg)](https://www.npmjs.com/package/@hua-labs/ui)
8
7
  [![license](https://img.shields.io/npm/l/@hua-labs/ui.svg)](https://github.com/HUA-Labs/HUA-Labs-public/blob/main/LICENSE)
9
8
  [![TypeScript](https://img.shields.io/badge/TypeScript-5.9-blue)](https://www.typescriptlang.org/)
10
9
  [![React](https://img.shields.io/badge/React-19-blue)](https://reactjs.org/)
11
10
 
12
- > **Alpha**: APIs may change before stable release. | **알파**: 안정 릴리스 전 API가 변경될 수 있습니다.
13
-
14
- ## Overview | 개요
15
-
16
- Accessible, TypeScript-first component library for React applications. Provides 50+ production-ready components with modular entry points for optimal bundle size, dark mode support, and Tailwind CSS integration.
17
-
18
- React 애플리케이션을 위한 접근성 우선 TypeScript 컴포넌트 라이브러리입니다. 50개 이상의 프로덕션 레디 컴포넌트를 모듈식 진입점, 다크 모드, Tailwind CSS 통합과 함께 제공합니다.
19
-
20
11
  ## Features
21
12
 
22
- - **50+ components** — Buttons, forms, tables, modals, overlays, and more
23
- - **Modular entry points** — Import only what you need for optimal bundle size
24
- - **Accessible** — ARIA attributes, keyboard navigation, WCAG compliant
25
- - **Dark mode** — Built-in dark mode support
26
- - **Tailwind CSS** — Utility-first styling with class variance authority
27
- - **Tree-shakeable** — Side-effect free (except CSS)
13
+ - **70+ components — Buttons, forms, tables, modals, overlays, and more**
14
+ - **Modular entry points — Import only what you need for optimal bundle size**
15
+ - **Accessible — ARIA attributes, keyboard navigation, WCAG compliant**
16
+ - **Dark mode — Built-in dark mode support**
17
+ - **Tailwind CSS — Utility-first styling with class variance authority**
18
+ - **Tree-shakeable — Side-effect free (except CSS)**
28
19
 
29
- ## Installation | 설치
20
+ ## Installation
30
21
 
31
22
  ```bash
32
23
  pnpm add @hua-labs/ui
33
24
  ```
34
25
 
35
- Peer dependencies: `react >= 19.0.0`, `react-dom >= 19.0.0`
26
+ > Peer dependencies: @dnd-kit/core ^6.3.1, @dnd-kit/sortable ^10.0.0, @dnd-kit/utilities ^3.2.2, react >=19.0.0, react-dom >=19.0.0
36
27
 
37
- Optional peers: `@dnd-kit/core`, `@dnd-kit/sortable`, `@dnd-kit/utilities` (for drag-and-drop)
38
-
39
- ## Quick Start | 빠른 시작
28
+ ## Quick Start
40
29
 
41
30
  ```tsx
42
31
  import { Button, Card, CardHeader, CardTitle, CardContent } from '@hua-labs/ui';
@@ -55,53 +44,179 @@ function App() {
55
44
  </Card>
56
45
  );
57
46
  }
58
- ```
59
-
60
- ## Entry Points | 진입점
61
-
62
- | Path | Components |
63
- |------|------------|
64
- | `@hua-labs/ui` | Button, Card, Badge, Alert, Modal, Drawer, Table, Avatar, etc. |
65
- | `@hua-labs/ui/form` | Input, Select, DatePicker, Upload, Autocomplete, ColorPicker, etc. |
66
- | `@hua-labs/ui/navigation` | PageNavigation, PageTransition |
67
- | `@hua-labs/ui/feedback` | ToastProvider, useToast |
68
- | `@hua-labs/ui/overlay` | Modal, Drawer, Popover, Dropdown, BottomSheet, ConfirmModal |
69
- | `@hua-labs/ui/data` | Table, Badge, Progress, Skeleton |
70
- | `@hua-labs/ui/interactive` | Accordion, Tabs, Menu, ContextMenu, Command |
71
- | `@hua-labs/ui/sdui` | Server-driven UI components |
72
- | `@hua-labs/ui/advanced` | Advanced components (dashboard, motion, emotion) |
73
- | `@hua-labs/ui/styles/*` | CSS files (base, toast, codeblock, theme) |
74
- | `@hua-labs/ui/icons` | Icon components |
75
47
 
76
- ## API Overview | API 개요
77
-
78
- | Category | Components |
79
- |----------|------------|
80
- | Basic UI | Button, Icon, Avatar, Link, Badge |
81
- | Layout | Container, Grid, Stack, Card, Panel, Divider |
82
- | Form | Input, NumberInput, Select, Checkbox, Radio, Switch, Slider, Textarea, DatePicker, Upload, Autocomplete, ColorPicker |
83
- | Overlay | Modal, Drawer, Popover, Dropdown, BottomSheet, ConfirmModal |
84
- | Data | Table, Progress, Skeleton |
85
- | Feedback | Alert, Toast, LoadingSpinner, Tooltip |
86
- | Interactive | Accordion, Tabs, Menu, ContextMenu, Command |
87
- | Navigation | Breadcrumb, Pagination, PageNavigation, PageTransition |
88
- | Theme | ThemeProvider, ThemeToggle |
89
- | Utilities | `cn`, `merge`, `mergeIf`, `mergeMap` |
90
-
91
- ## Documentation | 문서
92
-
93
- - [📚 Documentation Site | 문서 사이트](https://docs.hua-labs.com)
94
-
95
- ## Related Packages | 관련 패키지
96
-
97
- - [`@hua-labs/hua-ux`](https://www.npmjs.com/package/@hua-labs/hua-ux) — UX framework (UI + Motion + i18n)
98
- - [`@hua-labs/ui-dashboard`](https://www.npmjs.com/package/@hua-labs/ui-dashboard) — Dashboard domain components
99
- - [`@hua-labs/motion-core`](https://www.npmjs.com/package/@hua-labs/motion-core) — Animation hooks
100
-
101
- ## Requirements | 요구사항
48
+ ```
102
49
 
103
- React >= 19.0.0 · React DOM >= 19.0.0 · Tailwind CSS · TypeScript >= 5.9
50
+ ## API
51
+
52
+ | Export | Type | Description |
53
+ |--------|------|-------------|
54
+ | `Button` | component | |
55
+ | `Action` | component | |
56
+ | `Input` | component | |
57
+ | `NumberInput` | component | |
58
+ | `Link` | component | |
59
+ | `Icon` | component | |
60
+ | `EmotionIcon` | component | |
61
+ | `StatusIcon` | component | |
62
+ | `LoadingIcon` | component | |
63
+ | `SuccessIcon` | component | |
64
+ | `ErrorIcon` | component | |
65
+ | `Avatar` | component | |
66
+ | `AvatarImage` | component | |
67
+ | `AvatarFallback` | component | |
68
+ | `Modal` | component | |
69
+ | `Container` | component | |
70
+ | `Grid` | component | |
71
+ | `Stack` | component | |
72
+ | `Divider` | component | |
73
+ | `Card` | component | |
74
+ | `CardHeader` | component | |
75
+ | `CardFooter` | component | |
76
+ | `CardTitle` | component | |
77
+ | `CardDescription` | component | |
78
+ | `CardContent` | component | |
79
+ | `Panel` | component | |
80
+ | `ActionToolbar` | component | |
81
+ | `ComponentLayout` | component | |
82
+ | `Badge` | component | |
83
+ | `Progress` | component | |
84
+ | `ProgressSuccess` | component | |
85
+ | `ProgressWarning` | component | |
86
+ | `ProgressError` | component | |
87
+ | `ProgressInfo` | component | |
88
+ | `ProgressGroup` | component | |
89
+ | `Skeleton` | component | |
90
+ | `SkeletonText` | component | |
91
+ | `SkeletonCircle` | component | |
92
+ | `SkeletonRectangle` | component | |
93
+ | `SkeletonRounded` | component | |
94
+ | `SkeletonCard` | component | |
95
+ | `SkeletonAvatar` | component | |
96
+ | `SkeletonImage` | component | |
97
+ | `SkeletonUserProfile` | component | |
98
+ | `SkeletonList` | component | |
99
+ | `SkeletonTable` | component | |
100
+ | `Alert` | component | |
101
+ | `AlertSuccess` | component | |
102
+ | `AlertWarning` | component | |
103
+ | `AlertError` | component | |
104
+ | `AlertInfo` | component | |
105
+ | `ToastProvider` | component | |
106
+ | `useToast` | hook | |
107
+ | `useToastSafe` | hook | |
108
+ | `LoadingSpinner` | component | |
109
+ | `Tooltip` | component | |
110
+ | `TooltipLight` | component | |
111
+ | `TooltipDark` | component | |
112
+ | `Label` | component | |
113
+ | `Switch` | component | |
114
+ | `Toggle` | component | |
115
+ | `ScrollArea` | component | |
116
+ | `ScrollToTop` | component | |
117
+ | `ThemeProvider` | component | |
118
+ | `ThemeToggle` | component | |
119
+ | `useTheme` | hook | |
120
+ | `iconCategories` | function | |
121
+ | `emotionIcons` | function | |
122
+ | `statusIcons` | function | |
123
+ | `iconNames` | function | |
124
+ | `iconProviderMapping` | function | |
125
+ | `isValidIconName` | function | |
126
+ | `getIconNameForProvider` | function | |
127
+ | `ICON_ALIASES` | component | |
128
+ | `resolveIconAlias` | function | |
129
+ | `getIconAliases` | function | |
130
+ | `IconProvider` | component | |
131
+ | `useIconContext` | hook | |
132
+ | `defaultIconConfig` | function | |
133
+ | `getDefaultStrokeWidth` | function | |
134
+ | `merge` | function | |
135
+ | `mergeIf` | function | |
136
+ | `mergeMap` | function | |
137
+ | `cn` | function | |
138
+ | `formatRelativeTime` | function | |
139
+ | `Slot` | component | |
140
+ | `composeRefs` | function | |
141
+ | `mergeProps` | function | |
142
+ | `createColorStyles` | function | |
143
+ | `useColorStyles` | hook | |
144
+ | `createVariantStyles` | function | |
145
+ | `createSizeStyles` | function | |
146
+ | `createRoundedStyles` | function | |
147
+ | `createShadowStyles` | function | |
148
+ | `createHoverStyles` | function | |
149
+ | `HUA_SPRING_EASING` | component | |
150
+ | `withDarkMode` | function | |
151
+ | `createGradient` | function | |
152
+ | `withOpacity` | function | |
153
+ | `isTextWhite` | function | |
154
+ | `isGradientVariant` | function | |
155
+ | `responsive` | function | |
156
+ | `conditionalClass` | function | |
157
+ | `useMicroMotion` | hook | |
158
+ | `getMicroMotionClasses` | function | |
159
+ | `EASING_FUNCTIONS` | component | |
160
+ | `DURATIONS` | component | |
161
+ | `COMPONENT_MOTION_DEFAULTS` | component | |
162
+ | `CSS_MOTION_VARS` | component | |
163
+ | `useInView` | hook | |
164
+ | `useScrollProgress` | hook | |
165
+ | `useMouse` | hook | |
166
+ | `useReducedMotion` | hook | |
167
+ | `useWindowSize` | hook | |
168
+ | `ButtonProps` | type | |
169
+ | `NumberInputProps` | type | |
170
+ | `IconProps` | type | |
171
+ | `ModalProps` | type | |
172
+ | `CardProps` | type | |
173
+ | `CardHeaderProps` | type | |
174
+ | `CardTitleProps` | type | |
175
+ | `CardDescriptionProps` | type | |
176
+ | `CardContentProps` | type | |
177
+ | `CardFooterProps` | type | |
178
+ | `ActionToolbarProps` | type | |
179
+ | `ActionButton` | type | |
180
+ | `Toast` | type | |
181
+ | `ToggleProps` | type | |
182
+ | `ThemeProviderProps` | type | |
183
+ | `ThemeProviderState` | type | |
184
+ | `IconName` | type | |
185
+ | `ProjectIconName` | type | |
186
+ | `AllIconName` | type | |
187
+ | `IconProviderProps` | type | |
188
+ | `IconSet` | type | |
189
+ | `PhosphorWeight` | type | |
190
+ | `IconConfig` | type | |
191
+ | `SlotProps` | type | |
192
+ | `ColorStyleConfig` | type | |
193
+ | `ColorStyles` | type | |
194
+ | `SizeStyles` | type | |
195
+ | `Rounded` | type | |
196
+ | `Shadow` | type | |
197
+ | `HoverEffect` | type | |
198
+ | `MicroMotionConfig` | type | |
199
+ | `MicroMotionPreset` | type | |
200
+ | `MicroMotionState` | type | |
201
+ | `Color` | type | |
202
+ | `Size` | type | |
203
+ | `BaseVariant` | type | |
204
+ | `ExtendedVariant` | type | |
205
+ | `UseInViewOptions` | type | |
206
+ | `UseInViewReturn` | type | |
207
+ | `UseScrollProgressOptions` | type | |
208
+ | `UseScrollProgressReturn` | type | |
209
+ | `UseMouseOptions` | type | |
210
+ | `UseMouseReturn` | type | |
211
+ | `UseWindowSizeOptions` | type | |
212
+ | `UseWindowSizeReturn` | type | |
213
+
214
+
215
+ ## Related Packages
216
+
217
+ - [`@hua-labs/hua`](https://www.npmjs.com/package/@hua-labs/hua)
218
+ - [`@hua-labs/ui-dashboard`](https://www.npmjs.com/package/@hua-labs/ui-dashboard)
104
219
 
105
220
  ## License
106
221
 
107
- MIT — [HUA Labs](https://github.com/HUA-Labs/HUA-Labs-public)
222
+ MIT — [HUA Labs](https://hua-labs.com)
@@ -147,4 +147,4 @@ interface SwitchProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>,
147
147
  */
148
148
  declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLInputElement>>;
149
149
 
150
- export { Input as I, Label as L, NumberInput as N, Switch as S, type LabelProps as a, type InputProps as b, type NumberInputProps as c, type SwitchProps as d };
150
+ export { Input as I, Label as L, NumberInput as N, Switch as S, type InputProps as a, type LabelProps as b, type NumberInputProps as c, type SwitchProps as d };
@@ -1 +1 @@
1
- {"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../src/advanced/dashboard.ts"],"names":[],"mappings":"AACA,cAAc,yBAAyB,CAAC;AACxC,mBAAmB,yBAAyB,CAAC;AAG7C,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,YAAY,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC"}
1
+ {"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../src/advanced/dashboard.ts"],"names":[],"mappings":"AAIA,cAAc,yBAAyB,CAAC;AACxC,mBAAmB,yBAAyB,CAAC;AAG7C,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,YAAY,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC"}